extends Resource

class_name InventoryData

@export var slot_datas: Array[SlotData]

signal inventory_interaction(inventory_data:InventoryData, index: int, buton_index: int)

func on_slot_clicked(index: int, buton_index: int) -> void:
	inventory_interaction.emit(self, index, buton_index)

func get_slot_data(index: int) -> SlotData:
	return slot_datas[index]

func set_slot_data(index: int, data: SlotData) -> void:
	slot_datas[index] = data
